﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <LinearGradientBrush x:Key="BlueGradient" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF476CC4" Offset="0"/>
        <GradientStop Color="#FF021C5D" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="BlueGradient2" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF1440A8" Offset="0"/>
        <GradientStop Color="#FF02206A" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="GreyGradient" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF282E3D" Offset="1"/>
            <GradientStop Color="#FF32394B"/>
        </LinearGradientBrush>

    <Style x:Key="CloseButton" TargetType="Button">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border Background="{TemplateBinding Background}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="Foreground" Value="#FF35F6FF"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <Storyboard x:Key="SimpleOpacityAnimation" >
        <DoubleAnimation Storyboard.TargetProperty="(Border.Opacity)" BeginTime="0:0:0" Duration="0:0:0.5" From="0.0" To="1.0"  />
    </Storyboard>
    
    <Style x:Key="NewMessageAnimationStyle" TargetType="Border">
        <Setter Property="Opacity" Value="1"/>
        <Style.Triggers>
            <EventTrigger RoutedEvent="Border.Loaded" >
                <BeginStoryboard Storyboard="{DynamicResource SimpleOpacityAnimation}"/>
            </EventTrigger>
        </Style.Triggers>
    </Style>
    
    <Style x:Key="NotificationAnimationStyle" TargetType="Window">
        <Setter Property="Opacity" Value="1"/>
        <Style.Triggers>
            <EventTrigger RoutedEvent="Window.Loaded" >
                <BeginStoryboard Storyboard="{DynamicResource SimpleOpacityAnimation}"/>
            </EventTrigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>